package com.mysoft.gfyx.clue.service;


import com.mysoft.gfyx.clue.controller.dto.PubAddCustomersRequestDto;
import com.mysoft.gfyx.clue.service.dto.CustomerDto;
import com.mysoft.gfyx.clue.service.dto.CustomerHistoryDto;
import org.springframework.stereotype.Service;

import java.util.*;

/**
* 描述：CustomerHistory 接口层
* @author JavaSdk generator
* @date 2022-11-15
*/
@Service
public interface CustomerHistoryService {

    /**
     * 通过主键查询数据
     *
     * @param id 主键
     * @return 数据
     */
    CustomerHistoryDto selectById(String id);

    /**
     * 获取一个客户
     * @param conditions
     * @return
     */
    CustomerHistoryDto getCustomerHistory(Map<String, Object> conditions);

    boolean addCustomerHistory(CustomerHistoryDto customerHistoryDto);
    boolean addCustomerHistorys(Collection<CustomerHistoryDto> customerHistorysDto);

    boolean addCustomersAndContacts(PubAddCustomersRequestDto pubAddCustomersDto);

    CustomerHistoryDto getCustomerHistoryWithUnique(UUID CustomerResponsiblePersonGUID, String CreditCode);

}

